.pg-uploader-wrapper {
  display: inline-flex;
  
  .pg-img-box {
    min-width: 56px;
    min-height: 56px;
    width: 56px;
    height: 56px;
    border: 1px solid #ddd;
    border-radius: 2px;
    margin-right: 10px;
    position: relative;

    img {
      border-radius: 2px;
    }
  }

  .pg-hover-mask {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;

    [class^="icon-"] {
      font-size: $font-size-lg;

      &:hover {
        font-size: 16px;
      }
    }
  }
  
}

.pg-uploader {
  min-width: 56px;
  min-height: 56px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  border: 1px solid #ddd;
  transition: border .3s ease-in-out;
  border-radius: 2px;

  input {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

  &:hover {
    border-color: #bbb;
  }

  &:active {
    border-color: $primary;
  }

  &.loading {
    cursor: not-allowed;
  }

  &.disabled {
    cursor: not-allowed;
    background-color: #eee;
  }

  i {
    font-weight: 300;
    position: absolute;
    top: 20px;
  }
}
